import 'package:flutter/material.dart';
import 'package:flutter_09_game/config/app_color.dart';
import 'package:flutter_09_game/generated/assets.dart';
import 'package:flutter_09_game/generated/locales.g.dart';
import 'package:flutter_09_game/widgets/image/auto_image.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class EmptyNoData extends StatelessWidget {
  const EmptyNoData({super.key, this.message, this.assets});

  final String? message;
  final String? assets;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        AutoImage(
          assets ?? Assets.commonEmptyNotYet,
          width: 160.w,
        ),
        6.verticalSpaceFromWidth,
        Text(
          message ?? LocaleKeys.comingSoon.tr,
          style: TextStyle(
            fontSize: 14.sp,
            color: AppColor.textPrimary.withOpacity(0.5),
          ),
        ),
      ],
    );
  }

  factory EmptyNoData.notYetView({String? message}) {
    return EmptyNoData(
      assets: Assets.commonEmptyNotYet,
      // image: Assets.emptyNoNetwork,
      // type: type ?? EnumEmptyType.big,
      message: message ?? LocaleKeys.comingSoon.tr,
    );
  }

  factory EmptyNoData.notDataView({String? message}) {
    return EmptyNoData(
      assets: Assets.commonEmptyNoData,
      // image: Assets.emptyNoNetwork,
      // type: type ?? EnumEmptyType.big,
      message: message ?? LocaleKeys.noData.tr,
    );
  }
}
